<template>
  <div>
    <el-table v-loading="loading" :data="infoList" @selection-change="handleSelectionChange">
    <el-table-column label="超出范围类型"  align="center" prop="devType" />
    <el-table-column label="许可数量" align="center" prop="num"/>
        <el-table-column label="超出数量" align="center" prop="outNum" />
<el-table-column label="报警时间" align="center" prop="remindType"/>
    <el-table-column label="操作" align="center" class-name="small-padding fixed-width" >
      <template slot-scope="scope">
        <el-button
          size="mini"
          type="text"
          @click="handleInfo(scope.row)"
        >处置</el-button>

      </template>
    </el-table-column>
  </el-table>

  <pagination
    v-show="total>0"
    :total="total"
    :page.sync="queryParams.pageNum"
    :limit.sync="queryParams.pageSize"
    @pagination="getList"
  />

  </div>
</template>

<script>
import {license} from '@/api/radiation/todu.js'
export default {
  name: 'xzchTable',
  data() {
    return {
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 一企一档表格数据
      infoList: [
        {
          A:"张三",
          B:"临期",
          C:"2024-10-10",
        },
        {
          A:"李四",
          B:"到期",
          C:"2024-01-10",
        },
        {
          A:"王五",
          B:"到期",
          C:"2024-01-10",
        },
        {
          A:"马六",
          B:"到期",
          C:"2024-01-10",
        },

      ],
      // 查询参数
      queryParams: {

      },
      // 表单参数
    };
  },
  /*props: {
    editVisible: {
      type: Boolean,
      default: () => {
        return false
      }
    }
  },
  watch:{

  },
  computed: {
    show: {
      get () {
        return this.editVisible
      },
      set (val) {
        this.$emit('update:editVisible', val)
      }
    },
  },*/
  created() {
    this.loading = false
    //this.getList();
    // this.getCategoryList()
  },
  methods :{
    handleInfo(row) {

     //  alert("待做")
    },
    handleSelectionChange(){

    },
     async getList(){
    this.loading = true;
    let res =  await license()
    this.infoList = res.rows
    this.total = res.total
    console.log(res,'report');
    
      this.loading = false;
    },
  },
  mounted() {
    this.getList();
  },

}
</script>

<style>

</style>
